﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Сводное описание для DAL
/// </summary>
public class DAL
{
    string path = System.Web.HttpContext.Current.Server.MapPath("~\\App_Data\\Persons.xml");

    public DataSet GetAllPersons()
    {
        DataSet Persons = new DataSet();
        Persons.ReadXml(this.path);
        return Persons;
    }

    public void SavePersonstoDB(DataSet value)
    {
        value.WriteXml(this.path);
    }

	public DAL()
	{
        
	}
}